package cc.loac.heba.pojo;

import java.util.Date;
import java.util.List;

public class Comment {
    private Integer commentId;
    private String email;
    private String content;
    private Date createTime;
    private Integer parentCommentId;
    private Integer replyCommentId;
    private Integer heiId;
    private List<Comment> children;

    // 以下是 User 字段
    private String username;
    private String avatar;


    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Integer getParentCommentId() {
        return parentCommentId;
    }

    public void setParentCommentId(Integer parentCommentId) {
        this.parentCommentId = parentCommentId;
    }

    public Integer getReplyCommentId() {
        return replyCommentId;
    }

    public void setReplyCommentId(Integer replyCommentId) {
        this.replyCommentId = replyCommentId;
    }

    public Integer getHeiId() {
        return heiId;
    }

    public void setHeiId(Integer heiId) {
        this.heiId = heiId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public List<Comment> getChildren() {
        return children;
    }

    public void setChildren(List<Comment> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Comment{" +
                "commentId=" + commentId +
                ", email='" + email + '\'' +
                ", content='" + content + '\'' +
                ", createTime=" + createTime +
                ", parentCommentId=" + parentCommentId +
                ", replyCommentId=" + replyCommentId +
                ", heiId=" + heiId +
                ", children=" + children +
                ", username='" + username + '\'' +
                ", avatar='" + avatar + '\'' +
                '}';
    }
}
